#!/bin/bash
OK=0
WARN=1
CRITICAL=2
UNKNOWN=3
PATH="/bin:/sbin:/usr/bin:/usr/sbin"

Service_stat=`service collectl status|grep -v grep |grep unning|awk '{print $1}'`

if [ "T$Service_stat" != "T" ]
then
	echo "lustre collectl agent is running"
	exit $OK
else
	echo "lustre collectl is stopped"
	exit $CRITICAL
fi
